package com.ruoyi.project.jiaqin.supplyclass.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 供需类型对象 supply_class
 *
 * @author admin
 * @date 2021-01-28
 */
public class SupplyClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类ID */
    private String id;

    /** 父分类ID */
    @Excel(name = "父分类ID")
    private String parentId;

    /** 分类等级 */
    @Excel(name = "分类等级")
    private Integer level;

    /** 分类名 */
    @Excel(name = "分类名")
    private String name;

    /** 数量单位 */
    @Excel(name = "数量单位")
    private String unit;

    /** 拼音首字母 */
    @Excel(name = "拼音首字母")
    private String initials;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 显示排序 */
    @Excel(name = "显示排序")
    private Integer sort;
    public Integer getSort() {
        return sort;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }


    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getParentId()
    {
        return parentId;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setInitials(String initials)
    {
        this.initials = initials;
    }

    public String getInitials()
    {
        return initials;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("level", getLevel())
            .append("name", getName())
            .append("unit", getUnit())
            .append("initials", getInitials())
            .append("createAt", getCreateAt())
            .append("updateAt", getUpdateAt())
            .append("sort", getSort())
            .toString();
    }
}
